import { IsNotEmpty, IsString } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';

export class DocumentTypeDto {
  @ApiProperty({ description: '文档类型' })
  @IsString({ message: 'type Is Not String' })
  @IsNotEmpty({ message: 'type不能为空' })
  type: string;
}
